class Solution:
    def searchRange(self, nums, target):
        """
        :type nums: List[int]
        :type target: int
        :rtype: List[int]
        """
        start,end = 0,len(nums)-1
        for i in range(len(nums)):
            if nums[i] < target:
                start = i + 1
        for i in range(len(nums)-1,-1,-1):
            if nums[i]> target:
                end = i -1
        if start> end or len(nums) == 0:
            return [-1,-1]
        return [start,end]